package com.sjb.sixteen_journey_backend.handler.exception;

import lombok.AllArgsConstructor;

/**
 * 此枚举类中定义的都是跟业务有关的异常
 */
@AllArgsConstructor
public enum CustomExceptionCodeMsg {
    SERVER_ERROR(500, "请求数据出错，请求失败"),
    MAXIMUN_UPLOAD_SIZE(1000, "上传文件大小超过限制"),
    REDIS_KEY_NOT_FOUND(1001, "连接Redis失败"),

    UNABLE_TO_CONNECT_TO_REDIS(1002, "连接Redis过期，请重新登录");





    private Integer code;
    private String msg;

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
